import request from '../request'
//根据商品id获取详情页数据
export const reqGetDetailData =(goodsId)=>{
  return request({
    url:`/mall-api/goods/${goodsId}`
  })
}
//添加商品到购车
export const reqAddToCart =({goodsId,count,blessing})=>{
  return request({url:`/mall-api/cart/addToCart/${goodsId}/${count}`,data:{blessing}})
}

